<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no viewport-fit=cover" />
    <meta charset="utf-8" />
    <link rel="stylesheet" href="css/globle.css">
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/num.js"></script>
    <title>抽奖</title>
</head>
<body>
    <div id="dataNums">
  
    </div> 
    <div class="openLottery"></div>
    <div class="regulation">
        <div class="item">
            游戏规则
        </div>
    </div>
    <div class="record"><div class="item">中间记录</div></div>
    <script>
        $(function () {
            $(".openLottery").click(function(){
                //先清空 后禁止 动画结束解除禁止点击事件
                $("#dataNums").html("");
                $(this).addClass("disable");
                $("#dataNums").rollNumDaq({
                    deVal: '18873557604'
                });
                setTim();
            });
            function setTim(){
                setTimeout(function () { 
                    $('.openLottery').removeClass("disable"); 
                    // alert("触发了");   
                }, 5000); 
            }
        });
    </script>
</body>
</html>